package ystp.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import ystp.model.Ty;
import ystp.model.TyExample;

public interface TyMapper {
    int countByExample(TyExample example);

    int countPinguiPass(@Param("xiangmuid") String ppXiangmuId, @Param("userid") String ppUserId);

    int countPinpaiPass(@Param("xiangmuid") String ppXiangmuId, @Param("userid") String ppUserId,
            @Param("pinpai") String pinpai);

    int countPinzhongPass(@Param("xiangmuid") String ppXiangmuId, @Param("userid") String ppUserId,
            @Param("pinzhong") String pinzhong);

    int countPinguiAll(@Param("xiangmuid") String ppXiangmuId);

    int countPinpaiAll(@Param("xiangmuid") String ppXiangmuId, @Param("pinpai") String pinpai);

    int countPinzhongAll(@Param("xiangmuid") String ppXiangmuId, @Param("pinpai") String pinpai,
            @Param("pinzhong") String pinzhong);

    int deleteByExample(TyExample example);

    int deleteByPrimaryKey(String id);

    int insert(Ty record);

    int insertBatch(List<Ty> record);

    int insertSelective(Ty record);

    List<Ty> selectByExample(TyExample example);

    List<Ty> findBiaojuelist(@Param("xiangmuid") String ppXiangmuId, @Param("userid") String ppUserId,
            RowBounds rowBounds);

    List<Ty> findBiaojuelist(@Param("xiangmuid") String ppXiangmuId, @Param("userid") String ppUserId);

    Ty selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") Ty record, @Param("example") TyExample example);

    int updateByExample(@Param("record") Ty record, @Param("example") TyExample example);

    int updateByPrimaryKeySelective(Ty record);

    int updateByPrimaryKey(Ty record);

    List<Ty> selectByPinpai(@Param("pinpai") String pinpai, @Param("ppxiangmuid") String ppxiangmuid,
            @Param("ppPinpaixuhao") String ppPinpaixuhao);

    List<Ty> selectByPinzhong(@Param("pinzhong") String pinzhong, @Param("ppxiangmuid") String ppxiangmuid,
            @Param("ppPinzhongxuhao") String ppPinzhongxuhao);
}